package com.ruoyi.campus.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品信息对象 my_commodity
 *
 * @author zht
 * @date 2021-10-24
 */
public class MyCommodity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private String comId;

    /** 商品名 */
    @Excel(name = "商品名")
    private String comName;

    /** 售卖方式 0-以钱换物 1-以物换物 2-免费送 */
    @Excel(name = "售卖方式 0-以钱换物 1-以物换物 2-免费送")
    private String method;

    /** 商品描述 */
    private String comDesc;

    /** 视频 */
    private String videoUrl;

    /** 原价 */
    @Excel(name = "原价")
    private BigDecimal oriMoney;

    /** 售价 */
    @Excel(name = "售价")
    private BigDecimal soldMoney;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 状态 0违规 1正常 2已删除 3待审核 4已售出 */
    @Excel(name = "状态 0违规 1正常 2已删除 3待审核 4已售出")
    private String comStatus;

    /** 常用选项：自提，可小刀，不议价等 */
    private String commom;

    /** 商品类别id */
    private String typeId;

    /** 简介图URL */
    private String imgUrl;

    /** 用户ID */
    private Long userId;

    /** 商品类别名 */
    private String typeName;

    /** 用户名 */
    private String userName;

    /** 用户昵称 */
    private String nickName;

    /** 用户头像 */
    private String avatar;

    /** types */
    private String types;

    public String getTypes() {
        return types;
    }

    public void setTypes(String types) {
        this.types = types;
    }

    public String getComId() {
        return comId;
    }

    public void setComId(String comId) {
        this.comId = comId;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public void setMethod(String method)
    {
        this.method = method;
    }

    public String getMethod()
    {
        return method;
    }

    public String getComDesc() {
        return comDesc;
    }

    public void setComDesc(String comDesc) {
        this.comDesc = comDesc;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public BigDecimal getOriMoney() {
        return oriMoney;
    }

    public void setOriMoney(BigDecimal oriMoney) {
        this.oriMoney = oriMoney;
    }

    public BigDecimal getSoldMoney() {
        return soldMoney;
    }

    public void setSoldMoney(BigDecimal soldMoney) {
        this.soldMoney = soldMoney;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getComStatus() {
        return comStatus;
    }

    public void setComStatus(String comStatus) {
        this.comStatus = comStatus;
    }

    public String getCommom() {
        return commom;
    }

    public void setCommom(String commom) {
        this.commom = commom;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("comId", getComId())
            .append("comName", getComName())
            .append("method", getMethod())
            .append("comDesc", getComDesc())
            .append("videoUrl", getVideoUrl())
            .append("oriMoney", getOriMoney())
            .append("soldMoney", getSoldMoney())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("endTime", getEndTime())
            .append("comStatus", getComStatus())
            .append("commom", getCommom())
            .append("typeId", getTypeId())
            .append("imgUrl", getImgUrl())
            .append("userId", getUserId())
            .append("typeName", getTypeName())
            .append("userName", getUserName())
            .append("nickName", getNickName())
            .append("avatar", getAvatar())
            .toString();
    }
}
